class AddUserPreferences < ActiveRecord::Migration
  def self.up
    add_column :users, :notify_on_new, :boolean, :default => false
    add_column :users, :notify_on_update_if_subscribed, :boolean, :default => true
    add_column :users, :notify_on_update_if_owned, :boolean, :default => true
    add_column :users, :notify_on_assignment, :boolean, :default => true
    add_column :users, :notify_on_disown, :boolean, :default => true
  end

  def self.down
    remove_column :users, :notify_on_new
    remove_column :users, :notify_on_update_if_subscribed
    remove_column :users, :notify_on_update_if_owned
    remove_column :users, :notify_on_assignment
    remove_column :users, :notify_on_disown
  end
end
